{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e21.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 11:59:13
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "secret open2.dta"
{txt}
{com}. 
. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(5 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-257.85196}  
Iteration 1:{space 3}log likelihood = {res:-257.85196}  

Structural equation model{col 49}Number of obs{col 67}= {res}       147
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-257.85196

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4862419{col 26}{space 2} .0770764{col 37}{space 1}    6.31{col 46}{space 3}0.000{col 54}{space 4} .3351749{col 67}{space 3} .6373088
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0415499{col 26}{space 2} .0508106{col 37}{space 1}    0.82{col 46}{space 3}0.414{col 54}{space 4} -.058037{col 67}{space 3} .1411368
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2725256{col 26}{space 2} .0687963{col 37}{space 1}    3.96{col 46}{space 3}0.000{col 54}{space 4} .1376872{col 67}{space 3} .4073639
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2149715{col 26}{space 2} .0505012{col 37}{space 1}    4.26{col 46}{space 3}0.000{col 54}{space 4} .1159909{col 67}{space 3} .3139521
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0302048{col 26}{space 2} .0543147{col 37}{space 1}    0.56{col 46}{space 3}0.578{col 54}{space 4}-.0762501{col 67}{space 3} .1366597
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3359507{col 26}{space 2} .0682046{col 37}{space 1}    4.93{col 46}{space 3}0.000{col 54}{space 4} .2022722{col 67}{space 3} .4696293
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .4101714{col 26}{space 2} .0421416{col 37}{space 1}    9.73{col 46}{space 3}0.000{col 54}{space 4} .3275754{col 67}{space 3} .4927675
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0935777{col 26}{space 2} .0109151{col 54}{space 4} .0744537{col 67}{space 3} .1176139
{txt}     var(e.p){c |}{col 14}{res}{space 2}  .107155{col 26}{space 2} .0124988{col 54}{space 4} .0852562{col 67}{space 3} .1346786
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       147{col 27}        .{col 38} -257.852{col 49}     9{col 58} 533.7039{col 69} 560.6178
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4862419{col 26}{space 2} .0770764{col 37}{space 1}    6.31{col 46}{space 3}0.000{col 54}{space 4} .3351749{col 67}{space 3} .6373088
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0415499{col 26}{space 2} .0508106{col 37}{space 1}    0.82{col 46}{space 3}0.414{col 54}{space 4} -.058037{col 67}{space 3} .1411368
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2725256{col 26}{space 2} .0687963{col 37}{space 1}    3.96{col 46}{space 3}0.000{col 54}{space 4} .1376872{col 67}{space 3} .4073639
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0302048{col 26}{space 2} .0543147{col 37}{space 1}    0.56{col 46}{space 3}0.578{col 54}{space 4}-.0762501{col 67}{space 3} .1366597
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3359507{col 26}{space 2} .0682046{col 37}{space 1}    4.93{col 46}{space 3}0.000{col 54}{space 4} .2022722{col 67}{space 3} .4696293
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0146868{col 26}{space 2} .0265125{col 37}{space 1}    0.55{col 46}{space 3}0.580{col 54}{space 4}-.0372767{col 67}{space 3} .0666504
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1633533{col 26}{space 2} .0420754{col 37}{space 1}    3.88{col 46}{space 3}0.000{col 54}{space 4} .0808871{col 67}{space 3} .2458196
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4862419{col 26}{space 2} .0770764{col 37}{space 1}    6.31{col 46}{space 3}0.000{col 54}{space 4} .3351749{col 67}{space 3} .6373088
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0562367{col 26}{space 2}  .057217{col 37}{space 1}    0.98{col 46}{space 3}0.326{col 54}{space 4}-.0559066{col 67}{space 3}   .16838
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .4358789{col 26}{space 2} .0718491{col 37}{space 1}    6.07{col 46}{space 3}0.000{col 54}{space 4} .2950573{col 67}{space 3} .5767005
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .0302048{col 26}{space 2} .0543147{col 37}{space 1}    0.56{col 46}{space 3}0.578{col 54}{space 4}-.0762501{col 67}{space 3} .1366597
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3359507{col 26}{space 2} .0682046{col 37}{space 1}    4.93{col 46}{space 3}0.000{col 54}{space 4} .2022722{col 67}{space 3} .4696293
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       147
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .1633533{col 26}{space 2} .0423309{col 37}{space 1}    3.86{col 46}{space 3}0.000{col 54}{space 4} .0803863{col 67}{space 3} .2463203
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .4358789{col 26}{space 2} .0527871{col 37}{space 1}    8.26{col 46}{space 3}0.000{col 54}{space 4} .3324181{col 67}{space 3} .5393396
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       147
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .16335332{col 27}{space 2}  .001144{col 38}{space 2} .04233089{col 51}{space 2} .0899795{col 63}{space 1} .2538784{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0920668{col 63}{space 1} .2558915{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .43587887{col 27}{space 2}-.0000172{col 38}{space 2} .05278707{col 51}{space 2} .3298988{col 63}{space 1} .5374494{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3302884{col 63}{space 1} .5375186{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       147
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0146868{col 26}{space 2} .0267129{col 37}{space 1}    0.55{col 46}{space 3}0.582{col 54}{space 4}-.0376695{col 67}{space 3} .0670432
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0562367{col 26}{space 2} .0542512{col 37}{space 1}    1.04{col 46}{space 3}0.300{col 54}{space 4}-.0500937{col 67}{space 3} .1625672
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       147
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .01468683{col 27}{space 2} .0008365{col 38}{space 2} .02671291{col 51}{space 2}-.0387739{col 63}{space 1}  .066306{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0409952{col 63}{space 1} .0626927{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .05623673{col 27}{space 2} .0014826{col 38}{space 2} .05425122{col 51}{space 2} -.051207{col 63}{space 1} .1701147{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0541251{col 63}{space 1} .1608094{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       142
                                                {txt}F(3, 138)         =  {res}     0.03
                                                {txt}Prob > F          = {res}    0.9928
                                                {txt}R-squared         = {res}    0.0007
                                                {txt}Root MSE          =    {res} .50657

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0072619{col 26}{space 2} .0450213{col 37}{space 1}    0.16{col 46}{space 3}0.872{col 54}{space 4} -.081759{col 67}{space 3} .0962827
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.0231196{col 26}{space 2} .1408343{col 37}{space 1}   -0.16{col 46}{space 3}0.870{col 54}{space 4}-.3015919{col 67}{space 3} .2553526
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0317645{col 26}{space 2} .1569691{col 37}{space 1}   -0.20{col 46}{space 3}0.840{col 54}{space 4}-.3421401{col 67}{space 3} .2786111
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5360152{col 26}{space 2} .1292231{col 37}{space 1}    4.15{col 46}{space 3}0.000{col 54}{space 4} .2805019{col 67}{space 3} .7915285
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e21.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 12:00:58
{txt}{.-}
{smcl}
{txt}{sf}{ul off}